home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr10 / boxit010.zip / BOXIT.HLP < prev    next >
Text File  |  1993-06-24  |  25KB  |  500 lines

  1. /*
  2.   ┌╥─────────────────────────────────────────────────────────────────────╥┐
  3.   │║ Macro Title: BoxIt!                                                 ║│
  4.   │║ Version....: 0.10 for TSE 1.0 Pre-Release                           ║│
  5.   │║ Author.....: George J. De Bruin                                     ║│
  6.   │║ Address....: 1414 Shiloh Rd. Apt/Box 511                            ║│
  7.   │║              Plano, TX 75074                                        ║│
  8.   │║ Phone......: (214) 422-0266                                         ║│
  9.   │║ BBS Contact: Qedit support conferences on the following Mail Nets:  ║│
  10.   │║              RIME, Ilink, Intelec, Metrolink, FidoNet, EchoNet.     ║│
  11.   │║              Also available via the Ilink Editor's Conference, and  ║│
  12.   │║              directly on SemWare's Support BBS.                     ║│
  13.   │╟─────────────────────────────────────────────────────────────────────╢│
  14.   │║ This macro is hereby released as freeware.  Anyone may use          ║│
  15.   │║ or modify it in any way they see fit.  Future versions may carry    ║│
  16.   │║ more notices on distributing modified versions of BoxIt!            ║│
  17.   │╟─────────────────────────────────────────────────────────────────────╢│
  18.   │║                       R E L E A S E   N O T I C E                   ║│
  19.   │║                                                                     ║│
  20.   │║ This macro is officially released to SemWare for possible           ║│
  21.   │║ distribution in conjunction with The SemWare Editor, or an ancillary║│
  22.   │║ macro collection.                                                   ║│
  23.   │╟─────────────────────────────────────────────────────────────────────╢│
  24.   │║ Purpose:                                                            ║│
  25.   │║                                                                     ║│
  26.   │║ This is a simple macro that will draw a box around column blocked   ║│
  27.   │║ area using TSE's internal line drawing mode.  *ONLY* column blocks  ║│
  28.   │║ are supported at this time.                                         ║│
  29.   └╨─────────────────────────────────────────────────────────────────────╨┘
  30. */
  31.  
  32. Help SideToggles
  33.     x = 10
  34.     Title = "BoxIt! 0.1 -- Side Toggles"
  35.  
  36. "       ╓────────────╖"
  37. "───────╢Side Toggles╟─────────────────────────────"
  38. "       ╙────────────╜"
  39. ""
  40. "The Side Toggles menu is used to turn each side of"
  41. "the box On or Off.  Each side may be set"
  42. "individually using the Top, Bottom, Left and Right"
  43. "toggles. Additionally, all sides may be set at the"
  44. "same time using the Global selection."
  45. ""
  46. "The Global selection has an extra option: Invert."
  47. "Inverting the sides changes all settings that were"
  48. "On to Off, and vice versa. For example, if the"
  49. "toggles were set like this:"
  50. ""
  51. "                ┌───────────────┐"
  52. "                │ Global [  On] │"
  53. "                ├───────────────┤"
  54. "                │ Top     [Off] │"
  55. "                │ Bottom  [Off] │"
  56. "                │ Left    [ On] │"
  57. "                │ Right   [ On] │"
  58. "                └───────────────┘"
  59. ""
  60. "After selecting the Global, Invert option, the    "
  61. "menu would look like this:                        "
  62. "                                                  "
  63. "                ┌───────────────┐                 "
  64. "                │ Global [ Inv] │                 "
  65. "                ├───────────────┤                 "
  66. "                │ Top     [ On] │                 "
  67. "                │ Bottom  [ On] │                 "
  68. "                │ Left    [Off] │                 "
  69. "                │ Right   [Off] │                 "
  70. "                └───────────────┘                 "
  71. "                                                  "
  72. "The top and bottom sides have been turned on,     "
  73. "while the left and right sides have been turned   "
  74. "off.  Note that the Global selection now says     "
  75. "'Inv' next to it, indicating that you selected the"
  76. "inversion operation.                              "
  77. "                                                  "
  78. "This is useful if you want to quickly draw a box  "
  79. "where two sides have one type of line (say the top"
  80. "and right sides), while the other sides have a    "
  81. "different type of line.  For example:             "
  82. "                                                  "
  83. "                   ╓──────────┐                   "
  84. "                   ║          │                   "
  85. "                   ╚══════════╛                   "
  86. "                                                  "
  87. "Combining this feature with the user defined line "
  88. "type opens many possibilities.                    "
  89.  
  90. End SideToggles
  91.  
  92. /* ─────────────────────────────────────────────────────────────────── */
  93.  
  94. Help GapSettings
  95.     x = 10
  96.     Title = "BoxIt! 0.1 -- Gap Settings"
  97.  
  98. "       ╓────────────╖                             "
  99. "───────╢Gap Settings╟─────────────────────────────"
  100. "       ╙────────────╜                             "
  101. "                                                  "
  102. "The Gap Settings menu is used to adjust the amount"
  103. "of space between your marked block and the box    "
  104. "BoxIt will draw for you.  Each side may be set    "
  105. "individually using the Top, Bottom, Left and Right"
  106. "options.  Additionally, the gap may be set for all"
  107. "sides at once using the Global option.            "
  108. "                                                  "
  109. "For example, if the Gap Settings menu looked like "
  110. "this:                                             "
  111. "                                                  "
  112. "                 ┌──────────────┐                 "
  113. "                 │Global [    0]│                 "
  114. "                 ├──────────────┤                 "
  115. "                 │Top    [    2]│                 "
  116. "                 │Bottom [    2]│                 "
  117. "                 │Left   [    1]│                 "
  118. "                 │Right  [    1]│                 "
  119. "                 └──────────────┘                 "
  120. "                                                  "
  121. "You would get a box that looks like this (assuming"
  122. "the inner box was the column block):              "
  123. "                                                  "
  124. "                 ╔══════════════╗                 "
  125. "                 ║              ║                 "
  126. "                 ║┌────────────┐║                 "
  127. "                 ║│            │║                 "
  128. "                 ║│            │║                 "
  129. "                 ║│            │║                 "
  130. "                 ║└────────────┘║                 "
  131. "                 ║              ║                 "
  132. "                 ╚══════════════╝                 "
  133. "                                                  "
  134. "Not that there is only 1 space between the block  "
  135. "and the box.  This is the way BoxIt! works.  Just "
  136. "remember this short table:                        "
  137. "                                                  "
  138. "             ┌─────────────────────┐              "
  139. "             │        Lines Between│              "
  140. "             │Gap     Box and Block│              "
  141. "             ├─────────────────────┤              "
  142. "             │ 0      Within Block │              "
  143. "             │ 1           0       │              "
  144. "             │ 2           1       │              "
  145. "             │ 3           2       │              "
  146. "             │...         ...      │              "
  147. "             └─────────────────────┘              "
  148. "                                                  "
  149. "Now, assuming we wanted all of the gaps set to 1, "
  150. "we would use the global option to set them:       "
  151. "                                                  "
  152. "                 ┌──────────────┐                 "
  153. "                 │Global [    1]│                 "
  154. "                 ├──────────────┤                 "
  155. "                 │Top    [    1]│                 "
  156. "                 │Bottom [    1]│                 "
  157. "                 │Left   [    1]│                 "
  158. "                 │Right  [    1]│                 "
  159. "                 └──────────────┘                 "
  160. "                                                  "
  161. "And our box would look like this (again, assuming "
  162. "the inner box was our block):                     "
  163. "                                                  "
  164. "                 ╔══════════════╗                 "
  165. "                 ║┌────────────┐║                 "
  166. "                 ║│            │║                 "
  167. "                 ║│            │║                 "
  168. "                 ║│            │║                 "
  169. "                 ║└────────────┘║                 "
  170. "                 ╚══════════════╝                 "
  171.  
  172. End GapSettings
  173.  
  174. /* ─────────────────────────────────────────────────────────────────── */
  175. Help LineSettings
  176.     x = 10
  177.     Title = "BoxIt! 0.1 -- Line Settings"
  178.  
  179. "       ╓─────────────╖                            "
  180. "───────╢Line Settings╟────────────────────────────"
  181. "       ╙─────────────╜                            "
  182. "                                                  "
  183. "The Line Settings menu allows you to chose the    "
  184. "style of line that you want to draw your box with."
  185. "This features uses the standard line type settings"
  186. "supported by TSE:                                 "
  187. "                                                  "
  188. "    Single:       ┌────┐                          "
  189. "                                                  "
  190. "    Double Top:   ╒════╕                          "
  191. "                                                  "
  192. "    Double Side:  ╓────╖                          "
  193. "                                                  "
  194. "    Double Both:  ╔════╗                          "
  195. "                                                  "
  196. "    ASCII:        +-|                             "
  197. "                                                  "
  198. "    Eraser                                        "
  199. "                                                  "
  200. "    User-defined: [■]                             "
  201. "                                                  "
  202. "The user defined selection can be set to any      "
  203. "character you wish to draw your box with.         "
  204. "                                                  "
  205. "You can use the Eraser option to remove boxes that"
  206. "you have drawn.  The easiest way to accomplish    "
  207. "this is to                                        "
  208. "                                                  "
  209. "    (1) Select the box with a column block.       "
  210. "    (2) Set the Line Type to Eraser.              "
  211. "    (3) Set Global Gaps to 0.                     "
  212. "    (4) Set Global Side Toggles ON.               "
  213. "                                                  "
  214. "Then execute BoxIt.                               "
  215.  
  216. End LineSettings
  217.  
  218. /* ─────────────────────────────────────────────────────────────────── */
  219. Help QuickKeyRef
  220.     x = 10
  221.     Title = "BoxIt! 0.1 -- Quick Key Reference"
  222.  
  223. "       ╓───────────────────╖                      "
  224. "───────╢Quick Key Reference╟──────────────────────"
  225. "       ╙───────────────────╜                      "
  226. "                                                  "
  227. "Below is a short chart of the keys used by BoxIt: "
  228. "                                                  "
  229. "<Alt F1>         BoxIt! Menu Bar                  "
  230. "<Ctrl F1>        Execute BoxIt! (Draw Box)        "
  231. "                                                  "
  232. "These keys are provided as short-cuts to          "
  233. "navigating the menus:                             "
  234. "                                                  "
  235. "<Ctrl G><G>      Set Global Gap                   "
  236. "<Ctrl G><T>      Set Top Gap                      "
  237. "<Ctrl G><B>      Set Bottom Gap                   "
  238. "<Ctrl G><L>      Set Left Gap                     "
  239. "<Ctrl G><R>      Set Right Gap                     "
  240. "                                                  "
  241. "<Ctrl S><G>      Side Global Setting              "
  242. "<Ctrl S><T>      Side Top Toggle                  "
  243. "<Ctrl S><B>      Side Bottom Toggle               "
  244. "<Ctrl S><L>      Side Left Toggle                 "
  245. "<Ctrl S><R>      Side Right Toggle                "
  246.  
  247. End QuickKeyRef
  248.  
  249. /* ─────────────────────────────────────────────────────────────────── */
  250. Help ErrorMsgs
  251.     x = 10
  252.     Title = "BoxIt! 0.1 -- Error Messages"
  253.  
  254. "       ╓──────────────╖                           "
  255. "───────╢Error Messages╟───────────────────────────"
  256. "       ╙──────────────╜                           "
  257. "                                                  "
  258. "BoxIt! has a grand total of 3 error messages.     "
  259. "Below is a short explanation of them:             "
  260. "                                                  "
  261. "No Column Block In File                           "
  262. "═══════════════════════                           "
  263. "    Currently BoxIt! only supports column blocks  "
  264. "    (<ALT K> in TSE's standard interface).        "
  265. "                                                  "
  266. "    This message appears when there is either no  "
  267. "    column block in the current file, or if there "
  268. "    is no block in the current file.              "
  269. "                                                  "
  270. "    BoxIt aborts in this condition.  All settings "
  271. "    are left as they were, and the block (if there"
  272. "    was one) is still marked.                     "
  273. "                                                  "
  274. "                                                  "
  275. "Cursor Not In Block                               "
  276. "═══════════════════                               "
  277. "    The cursor needs to be placed somewhere inside"
  278. "    the marked area.                              "
  279. "                                                  "
  280. "    This is an adopted standard among the TSE   "
  281. "    Beta testers and macro authors.  It's primary "
  282. "    purpose is to keep users from accidentally      "
  283. "    performing an action they didn't mean to.     "
  284. "                                                  "
  285. "    BoxIt aborts in this condition.  All settings "
  286. "    are left as they were, and the block is still "
  287. "    marked.                                       "
  288. "                                                  "
  289. "                                                  "
  290. "Cannot Insert Box At or Before Beginning of Line   "
  291. "═══════════════════════════════════════════════   "
  292. "    This error occurs most often when the left    "
  293. "    column of the block - left gap is < 1.         "
  294. "    Currently, BoxIt! does *not* insert spaces    "
  295. "    at the beginning of a line if it needs to.    "
  296. "                                                  "
  297. "    A later version may support this.             "
  298. "                                                  "
  299. "    BoxIt aborts in this condition.  All settings "
  300. "    are left as they were, and the block is still "
  301. "    marked.                                       "
  302.  
  303. End ErrorMsgs
  304.  
  305. /* ─────────────────────────────────────────────────────────────────── */
  306. Help UsingBoxIt
  307.     x = 10
  308.     Title = "BoxIt! 0.1 -- Using"
  309.  
  310. "       ╓────────────╖                             "
  311. "───────╢Using BoxIt!╟─────────────────────────────"
  312. "       ╙────────────╜                             "
  313. "                                                  "
  314. "Using BoxIt! is easy.  Just follow these steps:   "
  315. "                                                  "
  316. "    (1) Column mark where you want the box.       "
  317. "                                                  "
  318. "    (2) Pull up the BoxIt! Menu (<ALT F1>).       "
  319. "                                                  "
  320. "    (3) Set the Side Toggles, Gaps Settings, and  "
  321. "        Line Type to your preferences.            "
  322. "                                                  "
  323. "    (4) Select BoxIt! from the menu.              "
  324. "                                                  "
  325. "To draw another box using the same settings:      "
  326. "                                                  "
  327. "    (1) Column mark where you want the box.       "
  328. "                                                  "
  329. "    (2) Press <Ctrl F1>.                          "
  330. "                                                  "
  331. "More information on specific options can be found "
  332. "in the help system, or the documentation.         "
  333.  
  334. End UsingBoxIt
  335.  
  336. /* ─────────────────────────────────────────────────────────────────── */
  337. Help History
  338.     x = 10
  339.     Title = "BoxIt! 0.1 -- History"
  340.  
  341. "       ╓───────────────╖                          "
  342. "───────╢History / About╟──────────────────────────"
  343. "       ╙───────────────╜                          "
  344. "                                                  "
  345. "BoxIt! is a macro for The SemWare Editor 1.0      "
  346. "Pre-Release that draws a box around a column      "
  347. "block.  This is a simple feature found in many    "
  348. "text editors, that TSE didn't have.  Originally, I"
  349. "thought no one used that feature, but after       "
  350. "talking to a few people I found that they did use "
  351. "it.  So I implemented it for TSE, and added in a  "
  352. "few extra features.                               "
  353. "                                                  "
  354. "Below is a short history of BoxIt! release        "
  355. "versions:                                         "
  356. "                                                  "
  357. "                                                  "
  358. "Version     Date        Comments                  "
  359. "──────────────────────────────────────────────────"
  360. "                                                  "
  361. "0.01        03/22/93  ∙ Initial coding of macro.  "
  362. "                        Very simple implementation"
  363. "                                                  "
  364. "0.02        03/24/93  ∙ Fixed bug that affects    "
  365. "                        using macro in overwrite  "
  366. "                        mode.  Insert is now set  "
  367. "                        to On when macro is       "
  368. "                        executed, and reset on    "
  369. "                        exit.                     "
  370. "                      ∙ Added: Side Toggles for   "
  371. "                        Top, Bottom, Left and     "
  372. "                        Right sides.              "
  373. "                      ∙ Added: Box Gap to all     "
  374. "                        adjusting space between   "
  375. "                        the block and the box.    "
  376. "                      ∙ Added: Menu.  Allows      "
  377. "                        setting all of the        "
  378. "                        options, including the    "
  379. "                        line pattern.  Also allows"
  380. "                        calling BoxIt.            "
  381. "                      ∙ Added: Global Variables   "
  382. "                        for Box edge toggles and  "
  383. "                        Box gap.                  "
  384. "                                                  "
  385. "0.03        06/10/93  ∙ First public release of   "
  386. "                        BoxIt!                    "
  387. "                      ∙ Changed names of several  "
  388. "                        procedures to resolve     "
  389. "                        conflicts with internal   "
  390. "                        TSE procedures.           "
  391. "                                                  "
  392. "0.04 - 0.09 Were *not* released at all.           "
  393. "                                                  "
  394. "0.10        06/24/93  ∙ Fixed bug that caused     "
  395. "                        total lock-up of TSE when "
  396. "                        current row - gap < 1.    "
  397. "                      ∙ BoxIt! now inserts as many"
  398. "                        lines as needed at the    "
  399. "                        beginning and end of a    "
  400. "                        buffer.                   "
  401. "                      ∙ Fixed bug that caused     "
  402. "                        total lock-up of TSE when "
  403. "                        current column - gap < 1."
  404. "                        Boxit! now returns an     "
  405. "                        error message 'Cannot     "
  406. "                        Insert Box At or Before   "
  407. "                        Beginning of Line.'        "
  408. "                      ∙ Changed to menu-bar       "
  409. "                        structure.                "
  410. "                      ∙ All menu items have a help"
  411. "                        line message attatched.   "
  412. "                      ∙ Added: About menu.  Select"
  413. "                        '≡' from menu bar.        "
  414. "                      ∙ Added: Help screen(s).    "
  415. "                        Select 'Help' from menu   "
  416. "                        bar.                      "
  417. "                      ∙ Added: Gap settings for   "
  418. "                        each side of box.         "
  419. "                      ∙ Added: Global gap setting."
  420. "                      ∙ Added: Global sides on/off"
  421. "                        toggle.                   "
  422. "                      ∙ Documentation over-haul.  "
  423. "                      ∙ Source code split into    "
  424. "                        four files:               "
  425. "                         BOXIT.S  : The main     "
  426. "                                     source code. "
  427. "                         BOXIT.MNU: The menus.   "
  428. "                         BOXIT.HLP: Help Screens."
  429. "                         BOXIT.KEY: Key Bindings."
  430. "                                                  "
  431. "More information about the plans for future       "
  432. "versions can be found at the end of the BoxIt     "
  433. "documentation file.                                "
  434.  
  435. End History
  436.  
  437. /* ─────────────────────────────────────────────────────────────────── */
  438. Help Author
  439.     x = 10
  440.     Title = "BoxIt! 0.1 -- Author"
  441.  
  442. "       ╓─────────────────────────╖                "
  443. "───────╢Author: Bio. & Contacting╟────────────────"
  444. "       ╙─────────────────────────╜                "
  445. "                                                  "
  446. "George J. De Bruin has been a beta tester for the "
  447. "SemWare Editor for over a year and a half, and    "
  448. "has hosted the Ilink Editors Conference for over  "
  449. "two years.                                        "
  450. "                                                  "
  451. "Contact Points                                    "
  452. "══════════════                                    "
  453. "                                                  "
  454. "George may be reached on the following networks in"
  455. "the conferences listed:                           "
  456. "                                                  "
  457. "RIME:       Qedit                                 "
  458. "Ilink:      Qedit, Editors, Shareware             "
  459. "Fido:       Qedit                                 "
  460. "Intelec:    Qedit, Word Processing                "
  461. "PlanoNet:   Reviews                               "
  462. "SmartNet:   Qedit                                 "
  463. "MetroLink:  Qedit                                 "
  464. "EchoNet:    Qedit                                 "
  465. "                                                  "
  466. "In addition, he may be reached at the following   "
  467. "places:                                           "
  468. "                                                  "
  469. "    The SemWare BBS -- (404) 641-8968             "
  470. "    Conference #4, TSE Questions.                 "
  471. "    Send Mail To: George De Bruin                 "
  472. "                                                  "
  473. "    The Lunatic Fringe BBS -- (214) 235-5288      "
  474. "    Conference #141, Get-Mo!                      "
  475. "    Send private message to: George De Bruin.     "
  476. "                                                  "
  477. "    Exec-PC -- (414) 789-4210                     "
  478. "    Send Email to: George De_Bruin                "
  479. "                                                  "
  480. "He may also be reached via the U.S. Postal Service"
  481. "at:                                               "
  482. "                                                  "
  483. "    George J. De Bruin                            "
  484. "    1414 Shiloh Rd. Box 511                       "
  485. "    Plano, TX 75074                               "
  486. "                                                  "
  487. "He will also accept voice phone calls at:         "
  488. "                                                  "
  489. "    (214) 422-0266                                "
  490. "                                                  "
  491. "during reasonable hours (Central Time Zone).      "
  492. "Because of an ever changing work schedule he      "
  493. "cannot commit to hours when he will be available. "
  494. "                                                  "
  495. "He is also unable to accept collect calls, or     "
  496. "return calls.                                     "
  497.  
  498. End Author
  499.  
  500.